import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "yin-container",
    component: () => import("@/views/YinContainer.vue"),
    children: [
      {
        path: "/",
        name: "home",
        component: () => import("@/views/Home.vue"),
      }, 
      {
        path: "/search",
        name: "search",
        component: () => import("@/views/search/Search.vue"),
      },  
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
